<?php

namespace app\model\archives_model;

use app\BaseModel;
use app\common\Message;
use app\model\UserModel;
use think\model\relation\BelongsTo;

class UserArchiveModel extends BaseModel
{
    use Message;
    protected $name = 'user_archive';

    /**
     * 关联用户表-获取用户性别。权限
     * @return BelongsTo
     */
    public function getUserInfo(): BelongsTo
    {
        return $this->belongsTo(UserModel::class, 'update_uid')->bind(['user_name'=>'name','role_mode']);
    }



}